define(function(require, exports, module) {

  var Backbone = require('backbone');
  var $ = require('jquery');
  var _ = require('underscore');
  var jsonview = require('jsonview');

  var g = require('js/g');

  var draw = require('hy5b/frontend/canvas/line')
  var neimeng = require('json!v/graph/data/map-coord.json')

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    var $canvas = g.newCanvas()
    $app.append($canvas)

    var offset = {
      x: -1800,
      y: -500
    }
    var scale = 20

    $canvas
      .drawLine({
        strokeStyle: '#2079b1',
        fillStyle: '#13487b',
        scale: scale,
        offset: offset,
        points: neimeng[0],
        shadowColor: '#2079b1',
        shadowBlur: 30,
        shadowOffsetX: 50,
        shadowOffsetY: 50
      })
      .drawLine({
        strokeStyle: '#2079b1',
        fillStyle: '#13487b',
        scale: scale,
        offset: offset,
        points: neimeng[1],
        shadowColor: '#2079b1',
        shadowBlur: 30
      })
    
  }

  return main;
})

//点画出来的地图